package com.llw.translate;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;
public class ShouyeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Button fy;
        Button sp;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.shouye);
    fy=findViewById(R.id.fanyi);
    sp=findViewById(R.id.shipin);
    //跳转视频界面
        sp.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(ShouyeActivity.this,ShipinActivity.class);
                startActivity(intent);
            }
        });
        //跳转翻译界面
    fy.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
            Intent intent=new Intent();
            intent.setClass(ShouyeActivity.this,MainActivity.class);
            startActivity(intent);
        }
    });


    }
}
